import { CustomEnum } from "@/enums";

export const HOUSE_STATUS: CustomEnum<number> = {
  NOT_FILLED: { label: "未填写", value: 0 },
  FILLED: { label: "已填写", value: 1 },
  APPROVED: { label: "已同意", value: 2 },
  REJECTED: { label: "已拒绝", value: 3 },
};

export const APPLICATION_STATUS: CustomEnum<number> = {
  PENDING: { label: "申请中", value: 0 },
  SUCCESS: { label: "成功", value: 1 },
  FAILURE: { label: "失败", value: 2 },
};

export const HOUSE_STATUS_MAP = {
  [HOUSE_STATUS.NOT_FILLED.value]: "info",
  [HOUSE_STATUS.FILLED.value]: "primary",
  [HOUSE_STATUS.APPROVED.value]: "success",
  [HOUSE_STATUS.REJECTED.value]: "danger",
};
